swift completion handler

115

func thisNeedsToFinishBeforeWeCanDoTheNextStep(completion: (String) -> ()) {    
    let stringToPassOutOfTheCompletionHandler = "The quick brown fox"    
    completion(stringToPassOutOfTheCompletionHandler)
}

Comments

Submit
0 Comments